3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to manage subdivision styles.
You can use the Q3SubdivisionStyle_New function to create a new subdivision style object.
TQ3StyleObject Q3SubdivisionStyle_New (
const TQ3SubdivisionStyleData *data);
The Q3SubdivisionStyle_New function returns, as its function result, a new style object having the subdivision style specified by the data parameter. The method field of the subdivision style data structure pointed to by the data parameter should be one of these values:
kQ3SubdivisionMethodConstant
kQ3SubdivisionMethodWorldSpace
kQ3SubdivisionMethodScreenSpace
The meaning of the c1 and c2 fields depends on the value of the method field. See "Subdivision Style Data Structure" for details.
If a new style object could not be created, Q3SubdivisionStyle_New returns the value NULL .
To change the current subdivision style, you must actually draw the style object. You can call Q3Style_Submit to draw the style in retained mode or Q3SubdivisionStyle_Submit to draw the style in immediate mode.
See "Subdivision Styles" for a description of subdivision styles.
You can use the Q3SubdivisionStyle_Submit function to submit a subdivision style in immediate mode.
TQ3Status Q3SubdivisionStyle_Submit (
const TQ3SubdivisionStyleData *data,
TQ3ViewObject view);
You can use the Q3SubdivisionStyle_GetData function to get the subdivision style method and specifiers of a subdivision style.
TQ3Status Q3SubdivisionStyle_GetData (
TQ3StyleObject subdiv,
TQ3SubdivisionStyleData *data);
You can use the Q3SubdivisionStyle_SetData function to set the subdivision style method and specifiers of a subdivision style.
TQ3Status Q3SubdivisionStyle_SetData (
TQ3StyleObject subdiv,
const TQ3SubdivisionStyleData *data);
Previous | QD3D Book | Overview | Chapter Contents | Next |